package com.swallow.cloud.controller;

import com.swallow.cloud.service.MenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: L.swallow
 * @Date: 2019/3/5 16:11
 */

@RestController
@RequestMapping("/sys/menu")
public class SysMenuController {


        @Autowired
        private MenuService menuService;

        @RequestMapping("menuTree")
        public Object menuTree(){
            return menuService.selectTreeList();
        }
}
